From 10a0215631ac0467bef770cc20f3aaf7e4e37c4c Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Mon, 28 Jul 2008 17:29:09 +0900 Subject: [PATCH] [IA64] improve __cpu_die() use udelay instead of nop loop. This patch reduces __cpu_die() time much. Signed-off-by: Isaku Yamahata --- xen/arch/ia64/linux-xen/smpboot.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xen/arch/ia64/linux-xen/smpboot.c b/xen/arch/ia64/linux-xen/smpboot.c index cb3ee16291..0cc4de2cd5 100644 --- a/xen/arch/ia64/linux-xen/smpboot.c +++ b/xen/arch/ia64/linux-xen/smpboot.c @@ -748,9 +748,7 @@ void __cpu_die(unsigned int cpu) return; } #ifdef XEN - /* XXX: There must be a better way to sleep */ - for (int j = 0; j < 1000000; j++) - cpu_relax(); + udelay(100 * 1000); #else msleep(100); #endif -- 2.30.2